
extern "C" __declspec(dllexport) void GUI_DrawAll(IGUIEnvironment *guienv)
{
	guienv->drawAll();
}

extern "C" __declspec(dllexport) IGUIStaticText* GUI_addStaticText(IGUIEnvironment *gui, const wchar_t *text, int x, int y, int x2, int y2,
	bool border, bool wordWrap, int id, bool fillBackground)
{
	return gui->addStaticText(text, rect<int>(x, y, x2, y2), border, wordWrap, 0, id, fillBackground);
}

 extern "C" __declspec(dllexport) IGUIImage * GUI_addImage(IGUIEnvironment *gui, s32 rectX1, s32 rectY1, s32 rectX2, s32 rectY2, IGUIElement *parent, s32 id, const wchar_t *text)
 {
	 return gui->addImage(core::rect<s32>(rectX1, rectY1, rectX2, rectY2), parent, id, text);
 }
 
 extern "C" __declspec(dllexport) IGUIImage * GUI_addImage2(IGUIEnvironment *gui, video::ITexture *image, s32 xPos, s32 yPos, bool useAlphaChannel, IGUIElement *parent, s32 id, const wchar_t *text)
 {
	 return gui->addImage(image, core::position2d<s32>(xPos, yPos), useAlphaChannel, parent, id, text);
 }
